package mscs.data;

import java.util.ArrayList;
import java.util.Date;

public class Operation {
	private ArrayList<Goods> goodsList;
	private Date opDate;
	private String comments;
	private Person person;
	private boolean in;
	public int getNum() {
        int num = 0;
        for(Goods goods : goodsList) {
            num += goods.getNum();
        }
		return num;
	}
	public boolean getIn() {
		return in;
	}
	public void setIn(boolean in) {
		this.in = in;
	}
	public Operation() {
		goodsList  = new ArrayList<Goods>();
		opDate = new Date();
	}
	public ArrayList<Goods> getGoodsList() {
		return goodsList;
	}
	public void setGoodslist(ArrayList<Goods> goodsList) {
		this.goodsList = goodsList;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
	
	
	
}
